package com.lry.crawlers.util;

import javax.xml.bind.SchemaOutputResolver;
import java.util.ArrayList;

/**
 * @program: lry_plus
 * @description: 去除特殊字符串
 * @author: pingc
 * @create: 2021-12-17 19:52
 **/
public class StringTr {

    public static  String TR (String str){
        ArrayList<String> strings = new ArrayList<>();
        strings.add("/");
        strings.add(":");
        strings.add("*");
        strings.add("?");
        strings.add("\"");
        strings.add("<");
        strings.add(">");
        strings.add("|");

        for (String string : strings) {
            str = str.replace(string,"");
        }
        return str;

    }

}
